#TODO java -jar JVM参数调优
#使用java 17作为基础镜像

#构建whgjzt-upms-biz
FROM 172.23.32.15/public/openjdk:17.0.2-jdk-buster AS boot-mcp-client
ENV TZ=Asia/Shanghai
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#将本地jar复制到容器中
COPY ./boot-mcp-client/target/boot-mcp-client-0.0.1-SNAPSHOT.jar /usr/local/whgjzt/

#COPY ./whgjzt-upms/whgjzt-upms-biz/src/main/resources/anxin.jks /usr/local/whgjzt/
#COPY ./whgjzt-upms/whgjzt-upms-biz/src/main/resources/hrt.jks /usr/local/whgjzt/

# 指定工作目录
WORKDIR /usr/local/whgjzt
EXPOSE  8081
ENV JAVA_OPTS=""
CMD java ${JAVA_OPTS} -jar boot-mcp-client-0.0.1-SNAPSHOT.jar